package com.xucranger.ojapi.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xucranger.ojapi.enity.VO.RankVO;
import com.xucranger.ojapi.enity.domain.Contests;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @Entity generator.domain.Cfcontest
*/
@Mapper
public interface ContestsMapper extends BaseMapper<Contests> {


    List<Contests> getcontest(Page page);

    List<Contests> ifincfcontest(@Param("contestname") String contestname);

    List<Contests> getcontestbystuid(Page page, @Param("stuid") String stuid);

    List<RankVO> rank(Page page,@Param("type") String type);
}
